package com.dabai.magiskmodulerepair.adapter;


import android.util.Log;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.dabai.magiskmodulerepair.R;
import com.dabai.magiskmodulerepair.bean.FileInfo;

import org.jetbrains.annotations.NotNull;

import java.util.ArrayList;
import java.util.List;

public class FileAdapter extends BaseQuickAdapter<FileInfo, BaseViewHolder> {

    private static final String TAG = "DBLog";

    public FileAdapter(ArrayList<FileInfo> fileInfo) {
        super(R.layout.file_item,fileInfo);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, FileInfo fileInfo) {
        baseViewHolder.setText(R.id.textView1,fileInfo.getName());
    }

    @Override
    protected void convert(@NotNull BaseViewHolder holder, FileInfo item, @NotNull List<?> payloads) {
        super.convert(holder, item, payloads);
    }
}